package com.gzc.pm.dao;

import java.util.List;

import com.gzc.pm.bean.CPLLineBean;

import cn.skyclass.ibatis.IBatisDao;
import cn.skyclass.net.OperationResult;

public class CPLLineDao {

	private IBatisDao dao = new IBatisDao();
	
	@SuppressWarnings("unchecked")
	public List<CPLLineBean> getByAxleIds(String axleIds){
		return dao.getList("CPLLine.getByAxleIds", axleIds);
	}
	
	public OperationResult addLines(List<CPLLineBean> lines){
		return dao.executeInsertBatch("CPLLine.insert1", lines);
	}
	
	public OperationResult deleteByAxleId(int axleId){
		return dao.executeDelete("CPLLine.deleteByAxleId", axleId);
	}
	
}
